package cc.messcat.service.workingplayer;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import cc.messcat.common.service.BaseServiceImpl;
import cc.messcat.dao.workingplayer.WorkingplayerDao;
import cc.messcat.entity.workingPlayer.WorkingPlayer;

@Service
public class WorkingplayerServiceImpl extends BaseServiceImpl<WorkingPlayer> implements WorkingplayerService {

	private WorkingplayerDao workingplayerDao;

	@Override
	public Page<WorkingPlayer> retrieveAllworkingPage(int pageNo, int pageSize) {
		Map map = new HashMap<>();
		String hql="from WorkingPlayer";
		return (Page<WorkingPlayer>) workingplayerDao.getPagerByHql(pageNo, pageSize, hql, map);
	}

	@Override
	public List<WorkingPlayer> retrieveAllworking() {
		// TODO Auto-generated method stub
		return retrieveAllObjects();
	}

	@Override
	public void addworking(WorkingPlayer workingPlayer) {
		addObject(workingPlayer);
	}

	@Override
	public void modifyHelpu(WorkingPlayer workingPlayer) {
		modifyObject(workingPlayer);
	}

	@Override
	public void removeworking(Long id) {
		removeObject(id);
	}
	
	

}
